package priv.yiyuan.example.design.visitor;

/**
 * Excel 报表生成器
 *
 * @author YiYuan
 * @data 2025/8/4
 * @apoNote
 */
public class ExcelReportVisitor implements ReportVisitor {

    @Override
    public void visit(SalesData element) {

        System.out.println("Generating Excel report for Sales Data: Product=" + element.getProduct() + ", Amount=" + element.getAmount());

    }

    @Override
    public void visit(InventoryData element) {

        System.out.println("Generating Excel report for Inventory Data: Item=" + element.getItem() + ", Quantity=" + element.getQuantity());

    }
}
